package com.my_musc_service.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;
import java.io.Serializable;

/**
 * (SharedComment)实体类
 *
 * @author A.Dun
 * @since 2021-08-17 14:13:47
 */
@Data
public class SharedComment implements Serializable {
    private static final long serialVersionUID = -52875719259944726L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private Integer sharedSongListId;

    private Integer sharedSongId;
    /**
    * 当前评论的父评论id【默认0，顶级父id】
    */
    private Integer parentId;

    private Integer userId;
    /**
    * 评论用户名
    */
    private String userName;

    private String comment;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    private Integer clickCount;

}
